package com.example.mapping.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mapping.domain.FieldMapping;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author baoyoujia
 */
@Mapper
public interface FieldMappingMapper extends BaseMapper<FieldMapping> {
    /**
     * insert record to table selective
     * @param dict the record
     * @return insert count
     */
    int insertSelective(FieldMapping dict);

    /**
     * update record selective
     * @param dict the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(FieldMapping dict);

    int updateBatch(List<FieldMapping> list);

    int batchInsert(@Param("list") List<FieldMapping> list);
}